package Thread_study.api;

/**
 *  线程的API
 */
public class ThreadDemo2 {
    public static void main(String[] args) throws InterruptedException {
        for (int i = 0; i < 6; i++) {
            System.out.println("输出" + i);
            if (i == 3) {
                // 让线程进入休眠状态
                // 段子:项目经理让我加上这行代码,如果用户愿意交钱,我就注释掉.
                Thread.sleep(3000);
            }
        }
    }
}
